



--被动闪电
local function on_run(self,hero,target)
    local hero = self.owner
    local height = 600
    local start = hero:getEnemyPoint()
    local effect1 = start:add_effect(self.model1)
    effect1:set_height(height)
    ac.wait(200,function()
        local light = ac.lightning({
            id = self.lightning,
            from = start,
            to = start,
            fade = 1,
            time = 0.5,
            ozf = height,
            ozt = height,
        })

        ac.loop(0.03,function(t)
            light.ozt = light.ozt - 20
            effect1:set_height(light.ozt)
            if light.ozt <= 0 then
                light.ozt = 0
                start:add_effect(self.model2):remove()
                effect1:remove()
                t:remove()
                hero:aoe_damage(start,150,self.rate1,self)
            end
        end)
    end)
end

ac.item('符文#1-1'){
    temp = '攻击触发',
    sx = '力量',
    model1 = [[Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl]],
    model2 = [[Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl]],
    lightning = '闪电链次',
}

ac.item('符文#1-2'){
    temp = '攻击触发',
    sx = '力量',
    model1 = [[Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl]],
    model2 = [[Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl]],
}

ac.item('符文#1-3'){
    temp = '攻击触发',
    sx = '敏捷',
    model1 = [[Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl]],
    model2 = [[Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl]],
}

ac.item('符文#1-4'){
    temp = '攻击触发',
    sx = '敏捷',
    model1 = [[Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl]],
    model2 = [[Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl]],
}

ac.item('符文#1-5'){
    temp = '攻击触发',
    sx = '智力',
    model1 = [[Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl]],
    model2 = [[Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl]],
}

ac.item('符文#1-6'){
    temp = '攻击触发',
    sx = '智力',
    model1 = [[Abilities\Spells\Orc\LightningBolt\LightningBoltMissile.mdl]],
    model2 = [[Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl]],
}


ac.item('强化|符文#1-1'){
    temp = '符文#1-1',
}
ac.item('强化|符文#1-2'){
    temp = '符文#1-2',
}
ac.item('强化|符文#1-3'){
    temp = '符文#1-3',
}
ac.item('强化|符文#1-4'){
    temp = '符文#1-4',
}
ac.item('强化|符文#1-5'){
    temp = '符文#1-5',
}
ac.item('强化|符文#1-6'){
    temp = '符文#1-6',
}